<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
    <h:head>
        <title>Facelet Title</title>
        <h:outputStylesheet name="css/cssLayout.css"/>

    </h:head>

    <h:body>
        <ui:composition template="./template/template.xhtml">

            <ui:define name="top">
                <h:outputText value="BIENVENIDO"></h:outputText>
            </ui:define>
            <ui:define name="left">
                <h:link outcome="datos/List" value="Ver todos los registros"/>

            </ui:define>

            <ui:define name="body">

                <h:dataTable id="dt1" value="#{datosController.items}" var="item" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" >

                    <h:outputText value="Datos" />

                </h:dataTable>



                <form method="POST" enctype="multipart/form-data" action="/imagenget/faces/FileUploadServer">


                    <table border="1">
                        <tr>
                            <td><h1>Ingresar a la base de datos</h1></td>
                        </tr>

                        <tr><td>Cedula</td>
                            <td><input type="text" value="" name="cedula" ></input></td></tr>

                        <tr><td>Nombre</td>
                            <td><input type="text" value="" name="nombre" ></input></td></tr>

                        <tr><td>Archivo</td>
                            <td>
                                <input type="file" name="file" ></input></td></tr>

                        <tr><td>Ingresar</td>
                            <td><input type="submit" value="Press"/></td></tr>

                    </table>
                </form>
                
                
                           

                <form action="/imagenget/faces/BuscarIMG" method="post"  >
                    <table border="1">
                        <tr>
                            <td><h1>Buscar Imagen</h1></td>
                        </tr>

                        <tr><td>Cedula</td>
                            <td><input type="text" value="" name="cedula"></input></td></tr>


                        <tr><td>Ingresar</td>
                            <td><input type="submit" value="ver" name="ver" onClick="return popup(this, 'notes')"></input></td></tr>

                    </table>
                </form>

            </ui:define>

        </ui:composition>

    </h:body>

</html>

